﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _06_SumOfnce
{
    class SumOfSequence
    {
        static void Main()
        {
            Console.WriteLine("Enter some integers separated by space (22 5 18 3)");
            string[] inputArray = Console.ReadLine().Split(' ');
            int count = 0;
            for (int i = 0; i < inputArray.Length; i++)
            {
                count = count + int.Parse(inputArray[i]);
            }
            Console.WriteLine("the sum is {0}", count);
        }
    }
}
